#ifndef HEAPSORT_H
#define HEAPSORT_H

#include "ialgo.h"

class HeapSort: public IAlgo
{
public:
    HeapSort(QObject *parent);

    // IAlgo interface
public:
    virtual QString name() override;
    virtual void run() override;

private:
    void buildHeap();
    void adjust(int begin_pos, int last_pos);
};

#endif // HEAPSORT_H
